from django.db import models
from db.base_model import BaseModel
from goods.models import GoodsSKU

# Create your models here.
class Cart(BaseModel):
    sku = models.ForeignKey('goods.GoodsSKU', verbose_name='商品')
    count = models.IntegerField(default=0, verbose_name='商品数量')
    class Meta:
        db_table = 'df_cart'
        verbose_name = '购物车'
        verbose_name_plural = verbose_name